package com.bojx.com.genericity;

public class CovariantArrays {

	public static void main(String[] args) {
		Fruit[] fruits=new Apple[10];
		fruits[0]=new Apple();
		fruits[1]=new Jonathan();
		try{
			fruits[0]=new Fruit();
		}catch(Exception e){
			e.printStackTrace();
		}
		try{
			fruits[0]=new Orange();
		}catch(Exception e){
			e.printStackTrace();
		}
	}

}
